package com.frejoys.common.dto.admin;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class CategoryAddDto {

    @NotBlank
    @Schema(type = "String", name = "name", description = "名称")
    private String name;

    @NotBlank
    @Schema(type = "String", name = "site", description = "位置(英文逗号分隔)：1首页顶部，2.首页商品列表")
    private String site;

    @Schema(type = "Integer", name = "isShow", description = "是否显示：0不显示，1显示")
    private Integer isShow;

    @NotNull
    @Schema(type = "Integer", name = "pid", description = "父id")
    private Integer pid;

    @Schema(type = "String", name = "path", description = "层次路径(英文逗号分隔)")
    private String path;

    @NotNull
    @Schema(type = "Integer", name = "sort", description = "排序")
    private Integer sort;

    @NotBlank
    @Schema(type = "String", name = "cover", description = "品类封面图")
    private String cover;
}
